home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9110 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.aus.world.net!usenet
  2. From: Kiran Muglurmath <kiranm@fnx.com.au>
  3. Newsgroups: comp.os.ms-windows.programmer.tools.owl,comp.lang.c
  4. Subject: Re: How do I link a library to my program??
  5. Date: Thu, 07 Mar 1996 16:15:49 +1000
  6. Organization: AUSNet Services pty. ltd.
  7. Message-ID: <313E7F15.FF6D5DF@fnx.com.au>
  8. References: <313d3c58.4431866@news.csus.edu> <4hkj89$iql@nnrp1.news.primenet.com>
  9. NNTP-Posting-Host: 198.142.77.2
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4m)
  14.  
  15. > In article <313d3c58.4431866@news.csus.edu>, wleong@sfsu.edu says...
  16. > >
  17. > >    I have been given a library file (winsock.lib) which contains
  18. > >routines that I need to use in my program. But even if I include it
  19. > >in my project file, linker still couldn't find the routines in the
  20. > >lib. Somehow I am under the impression that I need to call certain
  21. > >functions in my progam in order to load the library into the module.
  22.  
  23. If the library in question is an import library for a DLL, then you must
  24. also set the link flag to Dynamic linking in TargetExpert. If it is set
  25. to Static linking, you will see the same symptoms you described.
  26.  
  27.  
  28. Good luck.
  29. -Kiran.
  30.